package com.jeecg.demo.api;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

import org.jeecgframework.jwt.util.ResponseMessage;
import org.jeecgframework.jwt.util.Result;
import org.jeecgframework.web.system.service.SystemService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import com.jeecg.demo.entity.AppSysMaintainsEntity;
import com.jeecg.demo.service.AppSysMaintainsServiceI;

/**
 * app系统维护信息管理
 * @author admin
 *
 */
@Api(value = "appSysMaintain", description = "app系统维护", tags = "appSysMaintain")
@Controller
@RequestMapping("/appSysMaintain")
public class AppSysMaintain {
	
	@Autowired
	private AppSysMaintainsServiceI appSysMaintainsService;
	
	@RequestMapping(value = "/lastMaintainInfo", method = RequestMethod.POST)
	@ResponseBody
	@ApiOperation(value = "最新的系统维护信息", produces = "application/json")
	public ResponseMessage<AppSysMaintainsEntity> getLastMaintainInfo() {
		AppSysMaintainsEntity appSysMaintains=appSysMaintainsService.getLastMaintainInfo();
		
		return Result.success(appSysMaintains);
	}
}
